#ifndef WRITER_H
#define WRITER_H

#include <QRunnable>
#include <QThread>
#include <library.h>

class Writer : public QThread, public QRunnable
{
    Q_OBJECT
    int m_id;
    Library *m_library;
    QVector<book_id_t> m_writtenBooks;
    int m_writingTime;
    int m_editingTime;
    int m_sleepTime;

public:
    explicit Writer(int id, Library *library, int writingTime, int editingTime, int sleepTime);
    void run();

    void writeBook();
    void editBook();
    
signals:
    
public slots:
    
};

#endif // WRITER_H
